package Demo01;

public class Test {
    public static void main(String[] args) {
        Array<Integer> array = new Array<>();

    }
}

class Array<T> {
    public Object[] objects = new Object[10];

    public void setValue(int pos,T val ) {
        objects[pos] = val;
    }

    public T getValue(int pos) {
        return (T)objects[pos];
    }
}